package uniandes.caing.ccambios.entidades;

public class LineChangeLabel {

	private int changeNumber;
	private ChangeLineType changeLineType;
	private String historyChangeLabelPrint;

	public LineChangeLabel(int changeNumber, ChangeLineType changeLineType,
			String historyChangeLabelPrint) {

		this.changeNumber = changeNumber;
		this.changeLineType = changeLineType;
		this.historyChangeLabelPrint = historyChangeLabelPrint;
	}

	/**
	 * @return the changeLineType
	 */
	public ChangeLineType getChangeLineType() {
		return changeLineType;
	}

	/**
	 * @return the changeNumber
	 */
	public int getChangeNumber() {
		return changeNumber;
	}

	/**
	 * @return the LineChangeLabelPrint
	 */

	public String getLineChangeLabelPrint() {

		return String.format(
				"[%s]",
				historyChangeLabelPrint.replace("[", "").replace("]", "")
						+ String.format("%s{%s}", changeLineType.toString(),
								String.valueOf(this.changeNumber)));
	}
}
